<template>
	<view >
		<view v-if="!noMore" @click="loadMore">{{desc}}</view>
		<view v-if="noMore" >没有更多数据了...</view>
	</view>
</template>

<script>
	export default {
		props: {
			noMore: {
				type: [Boolean, String],
				default: false
			},
			
		},
		data() {
			return {
				 desc:'加载更多...'
			};
		},
		methods:{
			loadMore(){
				this.desc='加载中'
				this.$emit('loadMore')
			}
		}
	}
</script>

<style>

</style>
